package com.zmm.zebulon.module.bpm.biz.framework.bpm.config;

import com.zmm.zebulon.module.bpm.biz.framework.bpm.core.BpmProcessInstanceResultEventPublisher;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description: BPM 通用的 Configuration 配置类，提供给 Activity 和 Flowable
 *
 * @author zebulon
 * package com.zmm.zebulon.module.bpm.biz.framework.bpm.config
 * name: BpmCommonConfiguration
 * date 2024/1/10 23:46
 */
@Configuration(proxyBeanMethods = false)
public class BpmCommonConfiguration {

    @Bean
    public BpmProcessInstanceResultEventPublisher processInstanceResultEventPublisher(ApplicationEventPublisher publisher) {
        return new BpmProcessInstanceResultEventPublisher(publisher);
    }

}
